home *** CD-ROM | disk | FTP | other *** search
- //WaitForProgram Example
- RunProgram("calc")
- WaitForProgram()
- //This WaitForProgram will wait until Calculator is closed before executing the rest of the macro.
- RunProgram("Notepad")
- Delay(1000)
- SendKeysToWindow("Untitled - Notepad","Calculator will start in 3 seconds.")
- //This WaitForProgram will wait 3 seconds (3000 miliseconds) before executing the rest of the macro.
- WaitForProgram(3000)
- RunProgram("calc")
-